package com.lzh.runke.enums;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.lzh.runke.core.web_base.enums.BaseEnum;

/**
 * @Description: 联单状态
 * @Author: LiuZiHao
 * @Date: 2022/12/15 18:46
 */
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum JointOrderStatusEnum implements BaseEnum<String> {
    WAIT_CONFIRM("WAIT_CONFIRM", "代经营确认"),
    WAIT_OUT("WAIT_OUT", "待运输确认"),
    WAIT_SIGN("WAIT_SIGN", "代经营签收"),
    WAIT_CONSULT("WAIT_CONSULT", "代签收协商"),
    CONSULT_AGREE("CONSULT_AGREE", "协商同意签收"),
    SIGNED("SIGNED", "已签收"),
    CANCEL("CANCEL", "已作废"),
    ;

    private String value;
    private String text;

    JointOrderStatusEnum(String value, String text) {
        this.value = value;
        this.text = text;
    }

    @Override
    public String getValue() {
        return this.value;
    }

    @Override
    public String getText() {
        return text;
    }

    @Override
    public String getName() {
        return this.name();
    }
}
